/**
 * 
 */
package com.conn.service.socket.req;


/**
 * @author lushouzhi
 *
 */
public abstract class ClientRequest {
	public final static byte RESP_FAIL=0;
	public final static byte RESP_SUCC=1;
	protected byte[]body;
	
	protected EndianUtils endianUtils=null;
	
	public  void setBody(byte[] body){
		this.body=body;
		endianUtils=new EndianUtils(body);
	}
	
	public abstract void parseBody();
	
	public short cmd;
	
	public short getCmd() {
		return cmd;
	}

	public ClientRequest(short cmd){
		this.cmd=cmd;
	}
	
}
